﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/master/default.master" Inherits="gms.page.admin.playermgr, Game Management Library" %>
<asp:Content ContentPlaceHolderID="page_title" runat="server">Admin Home</asp:Content>
<asp:Content ContentPlaceHolderID="page_head" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="body_messages" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="body_content" runat="server">
<a href="playermgr_add.aspx">Add</a>
<table>
	<tr>
		<td>Name</td>
		<td>Email</td>
		<td>Last IP</td>
		<td>&nbsp;</td>
	</tr>
<%
	for (int i = 0; i < list_of_players.Count; i++) {
%>
	<tr>
		<td><%= list_of_players[i].last_name + ", " + list_of_players[i].first_name %></td>
		<td><%= list_of_players[i].email %></td>
		<td><%= list_of_players[i].address %></td>
		<td>
			<% if (list_of_players[i].player_id != 1) { %>
			<a href="playermgr_edit.aspx?id=<%= list_of_players[i].player_id %>">Edit</a>
			<a href="playermgr_del.aspx?id=<%= list_of_players[i].player_id %>">Delete</a>
			<% } %>
		</td>
	</tr>
<%
	}
%>
</table>
</asp:Content>